package com.snow.storeapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.snow.storeapi.entity.Diagnosis;

import java.util.List;
import java.util.Map;

public interface DiagnosisMapper extends BaseMapper<Diagnosis> {
    List<Map<String, Object>> selectFormulaCatalog();

    List<Map<String, Object>> selectFormulaContent(String formulaCode);
    
    List<Map<String, Object>> selectFormulaStandard(String formulaCode);    

    void insertDiagnosisData(List<Map<String, Object>> diagnosisDatas);

    void insertDiagnosisResult(Map<String, Object> diagnosisResult);
    
    void deleteDiagnosisData(String diagnoseID);

    void deleteDiagnosisResult(String diagnoseID);

    List<String> findSimilarity(String startRange, String endRange, String diseaseCode, String resultId);
}
